﻿//------------------------------------------------------------------------------
// <copyright file="RpcArchiveField.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//------------------------------------------------------------------------------

namespace Microsoft.Internal.GamesTest.Rpc.Client
{
    using System;

    /// <summary>
    /// Contains information about a field in an archive.
    /// </summary>
    public class RpcArchiveField
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="RpcArchiveField"/> class.
        /// </summary>
        /// <param name="name">The name of the field.</param>
        /// <param name="type">The type of the field.</param>
        internal RpcArchiveField(string name, Type type)
        {
            this.Name = name;
            this.DataType = type;
        }

        /// <summary>
        /// Gets the data type of the field.
        /// </summary>
        public Type DataType { get; internal set; }

        /// <summary>
        /// Gets the name of the field.
        /// </summary>
        public string Name { get; internal set; }
    }
}
